Allows for aliased methods in serialization, so we can do stuff like

Allows for aliased methods in serialization, so we can do stuff like `$model->to_array(['methods' => ['get_name' => 'name']]);`