Fix swapped inside/outside classes.
Specify smart pointer policy for MetaPlayer.

This fixes the object_cast when we get an instance of a Lua subclass.
Fix operator() compilation and add logging.
Handle on_init in MetaPlayer.