Thanks Marshall, José and Markus for your feedback / code! You're right: the XMI is not sufficiently self-describing. The ambiguity between numeric and referential features is a critical problem to inferring a type system from an XMI file - at least in my scenario.
Best, -- Richard
