Generic instances for DBKey and GDBRef

This is necessary to use generic JSONSchema instances