metamodel: use HashSets instead of Arrays