defer decision whether import used on the right side of import declarati...

...on should be considered referenced, this fixes #1401