Get the right variable name when querying SCALARs

via a wrapped function
Merge branch 'master' of github.com:libMesh/libmesh