Support classes that have properties of a custom type