Added exceptions for various cases of incomplete type definitions, fixed another hash key length issue.