fix #596 preserve aliases in imports on paste-with-imports