add Constraints as Attribute with toScala etc.

introduced a dependecy between Constr and metamodel.scala through the
CanGenerateScala trait