Issue #1064: Add a test
Fix #1064 by calling simplifyType() before attempting the equals(). Note we can't just use typeFact().getDefiniteType() to disount optionality because on a type parameter that creates the UnionType 'T&Object'