Fix: segfault could happen when loading bad modules.
Make loading code a lot more readable.
Be more clever about loop count (some modules manually loop with Bxx).