HPCC-8030 R/Java/JavaScript/Python language support in ECL

Add tests for exception marshalling, and corresponding fixes in the
exception marshalling implementations.

Check and adjust Java parameters according to the types in the supplied
signature, including handling parameters and results of type char.

Other changes in response to code review.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>