Make JS functions serialize properly (cf. Issue #545).
fixed ruby reduce
added regression test for Issue #545
removed debug statement from ruby driver
added more tests for 545
patched more tests for 545