make collection and instance toJson signatures match by making instance.toJson a function as well
0.6.1