Add test for binary type constructors
Add tests and fixes for parsing dimension types