Don't serialize a null value for a property of type Type.
Fixes #19