Allows for aliased methods in serialization

So we can do stuff like `$model->to_array(['methods' => ['get_name' => 'name']]);`