Extension: Allow combination of file script and inline script in Groovy.

This is helpful if there are reusable parts that should be applied in
multiple Groovy script (such as helper methods, making use of context
variables), but still it is intended to keep the main Groovy script
directly in the test case.