fix bug in collection not inheriting from hyperjson.