Implemented CustomRowMapper template using ST4. Fixed ANTLR4 visitors used in tests. refs #413