add getVarInfo and getVarType to Text.LPFile module.

Use them rather than slow integerVariables where possible.