Updated the any_manager type erasure

- Added an overload of for_each.