Fix settings object having constructors of another vm.context

This made it impossible to rely on `instanceof` to work as expected on (even parts of) the settings object
Fixes #1570