correctly parse uppercase or white-spaced types

specs: use only lowercase

Fixes #10