[instancer] change optimize() to as_item_varstore() which allows another option to skip optimization