That's a great idea, I think that your approach with the 3rd party compiler would suit that well. I'm using PascalScript quite a lot atm, objects in my scene graph get registered by name in the VM as the correct class.

I combine this with a flag on objects stating if they were created at design time or during execution allowing you to create scripts that spawn objects but still return to the design state when you click stop