Fix CPP templates for TIMESTAMP,REAL types