Show the constraints on selected machine tokens

When constraints are set to hidden the selected token should still have visible constraints.
I'll happily make the change, but would you care to explain the reason behind not wanting the declaration in the loop? It seems to me if it is declared outside the loop the scope is wrong...