Added a toData method to the collection. Also makes the toData method on the model call it for submodels and collections