fixes #41. Quite easy because we are now working with typed trees in which import statements are already resolved.