Multiple changes

- Minor optimizations in any_entity_key.
- Added mp::for_each_ref.
- Added new functions to manager and any_manager.