Importer precedence fix

Requires tests & @martinfilliau to review.