Only gcc 4.6 accepts typename outside template. Refs #7019