Cleaned up the ConstantLoader class a tad.

This should pave way for actually being able to test it on its own.