getNested: Fixed bug that caused variables returned by reference to actually be pointing to a copy of the variable.
Core: Debugging possible multiple instances of core.