Fix lockup when attempting to load a l0dable with disabled ELF loading
I addressed the issue reported in #228 (closed), but also did a bit more cleanup in related parts of the code. Check the individual commit messages for more details.
Fixes #228 (closed)