Fix minor bug in `setNativeEnabled`, and expose it in ScriptingContainer

This PR contains two commits.  The first simply fixes a minor bug in the implementation of `setNativeEnabled`, where the parameter was being ignored and the value was always being set to `false`.

The second commit adds accessor methods for `nativeEnabled` to the `ScriptingContainer` class.