Allow aliased methods in serialization

Enables you to do something like `$model->to_array("'methods" => ["get_name" => "name"]]);`