Better serialize

Improvements to the `restless.models.serialize()` function.