Fix ink core race condition

Problem with a for loop's variable scope squeezed through my tests because they never tried to include more than one module at a time.

Also made a test to confirm that createModules in ink-all.js don't need to be sorted anymore. The only synchronous dependency is now Ink/1/

:w