Regression test for #190.
Fixes #190.

SInce the complete expression is long:
```
smalltalk.Foo||typeof Foo=="undefined"?nil:Foo
```
it is put as inner function $Foo into method and called as `$Foo()`
whenever the global is accessed.
Merge pull request #436 from herby/gh-190

Fixes PascalCase variables (#190), returns nil if not existent.