Fixed more warnings in DAO.stg and other templates. refs #523