add attributes to terms so that we can specify the bit width of MInt var...

...iables

Builds off of #787. @radumereuta @andreistefanescu please review