Add better datasets JSON query and fix issue with gob encoding of binary.ByteType