fix collection.toJson by using the changed signature for item.toJson
0.6.2