[PRD-4564] fix testValidateAddingAConstantToSumFunction
[PRD-4670]  Added a flag to prevent a recursive attempt to call paintImmediately() while repainting.
Merge pull request #201 from tgf/prd-4564

[PRD-4564] fix testValidateAddingAConstantToSumFunction
Merge pull request #202 from mkambol/prd4670

[PRD-4670]  Added a flag to prevent a recursive attempt to call paintImmediately() while repainting.
PRD-4565: Fixed getParameterCount() as it was always returning the number of parameter fields without regards to if there is any values in there.  Fixed catch-all logic.  Added more test cases.