Remove runtime call to assertObject for import statements

Fixes #1115