This allows defining custom types
Merge pull request #129 from sontek/handle_non_string_types

Allow non-string custom types (arbitrary objects).