Started new example project.
Fixed a few bugs:
Loading scripted Enum values was throwing exceptions in the editor.
Saving subtrees wasn't working correctly.
Pressing the "Load" button on a reference which target was just created was throwing an exception.
Tried fixing a few gl context switching problems... again.