Allow the VM to inherit extra definitions.

This also slightly changes how it inherited global data to begin with. Instead
of copying these definitions over they can instead be added as regular parent
definitions.