- useful error message for bad data type (fixes #551)
- correcting error message
- changed error message to match expected test result
- coding style
- support both definition styles
- adding second test for object style definition

- removing incomplete dataType check
- styling code more like the rest of the project
Merge pull request #553 from crossman/master

Better error message for bad data types in define