Ensure %import is in submodule env

This function needs to be in a sub-module's environment at compile time, so that it is available for use during compilation. For now this is done by using primitiveBindings instead of an empty environment.