Implemented the great part of PkStatementSetter.stg. Added some tests. refs #473