Cleanup: class loader deprecation and simplification

Time to get rid of this thing: marking it as deprecated.
I used `reset()` because the assumption that key `0` exists is broken.