C++11 alias templates seg fault fix

Segfault fix when using alias templates, reported by Pierre-Henri Wuillemin