Made Attribute serializable

attribute is now serializable (tested), frontend added, attribute
constraint is stored as the string of its expression