add support for specifying type names instead of types directly
Merge pull request #9 from dobarkod/string-constraints

add support for specifying type names instead of types directly