Added coersion support to Model.toJSON