Implement getting list of compunit coderefs.

Gets dynamic compilation unbusted, which helps towards fixing the
roles test.
Correct some errors.
Be explicit about what is the mainline.
Fix outer-hunt/freshcode interaction bug.
Fix collisions handling bug in MOP code.

Caught on JVM thanks to it being a bit stricter.