added undefined cases for data type enums

-Many switch statements did not handle default, fixed that

This is an attempt to fix #1574