Don't use 'typename' in non-template context

This fixes the build on GCC 4.4.

Pointy hat: @bska