Route `serialize` hook argument is the model, not params.
Merge pull request #2147 from vikhyat/serialize-params

Route `serialize` hook argument is the model, not params