Pass options from Compiler.script to .compile.

Test Compiler.script.
Fixes #1107