Generic instances for DBKey and GDBRef

This is necessary to use generic JSONSchema instances
Merge pull request #7 from tvh/generic-instances

Generic instances for DBKey and GDBRef