Fixed toJson method for collection

Collections do not have model.collection method, but they do have .toJson
Merge pull request #3 from ikido/master

Fixed toJson method for collections