Fixed invalid uses of "typename"

[SVN r86577]