Allow deserializers to support value types

Fixes #564