fixed bug in MechanicalQuantities[...] where variables weren't properly updated
after switching to EvaluateFunction[...] calling convention in code.