Fix #1084 and #1085 (miscellaneous issues with --modules=instantiate)

The following commits close the bugs #1084 and #1085, and add regression tests.
Correct, it should be `executionStatements.length`, and the conditional branch can actually be removed since FunctionBody works fine with an empty array, whereas parseExpression had issues.