Correctly fill eType reference of Reference metatypes.
More work on exporting metaobjects. Still not complete.