Java-1486

make the following types compatible in JsonReader and JsonWriter: binary, minkey, maxkey, timestamp, dbPointer
fixed