aafef1e92d broke this while trying to make the global import available in initialisation, this commit makes sure we place the module's own functions after all resolved imports.
aafef1e92d