Tell user serializer if object is a key.

Closes #238.