Very nice commit!

Refs #1700
* Refactoring + adding missing parameters to other sumRow() calls
* Fixing tests on PHP 5.4 / 5.5
Merge remote-tracking branch 'origin/master'