Fix deprecated use of aliasType