Both global access methods of the Global object are broken in version 1.6.1. This is a confirmed regression since version 1.6.0.
Example test code:
console.writeln( Settings.readGlobal( "Security/AllowJavaScriptCommandExecution", DataType_Boolean ) ? "yes" : "no" );
The above sentence always writes "no", as the readGlobal method of Settings always returns an invalid value that evaluates to Boolean false. For a workaround, see this forum post:
http://pixinsight.com/forum/index.php?topic=1791.msg13813#msg13813Thanks to Georg Viehoever for discovering this bug. It will be fixed in the next release.