Metamodel: introduce a TypeDescriptor->ProducedType weak ref cache for ceylon/ceylon-compiler#1647
TypeDescriptor: implement proper hashCode for ceylon/ceylon-compiler#1647

Fixed NPE in some cases