Fixed HaxePsiReferenceList class-cast exception in getReferenceElements()
being invoked from AbstractHaxePsiClass's getExtends/ImplementsList methods.