Minor consistency improvement in util.lua
Unmoduled core modules with package.loaded trick + fixed locals shadowing module table

Thanks to Metalua for the possibility to automate this.