Revert "Call sem_check_context recursively on imported units"

This reverts commit 890ac1a2ddacb3ce28304fea473b95d68e1f156c.
Cosmetic tidy up in cgen.c