Aliased types weren't handled correctly in the template param deduction