Check for TypeKind.ERROR in addition to ErrorType
Merge pull request #511 from KoljaTM/450_Pref_not_processed_on_clean

Check for TypeKind.ERROR in addition to ErrorType. Fixes #450