Fix for #1477: expand aliases when needed for type parameters
Test for #1477: class alias + named args initializer bug