addIfNew, addIfExists, mergeIfNew, mergeIfExists

removed non-capitalized AttRef generators in metamodel.scala to avoid
confusion
change ids from Vector to Set to make contains checks more efficient