Allow to pass external JAVA_OPTS.
Update JAVA_OPTS setting.
Merge pull request #1028 from matejonnet/master

Allow to pass external JAVA_OPTS.
Added test for #945
Make sure that anonymous functions (which get converted into Callables) are marked unboxed
Fixed #945 Support statement closures