Refactor: move BoxedClass from core/ to runtime/
Refactor: abstract this functionality more