Fix incorrect function.name
for aliased imports
#1484
+91
−20
Draft