Fix passing of DynArrays to Java constructors (DYNJS-118)

This also fixes issues with passing DynArrays to Java methods
expecting primitive arrays (ie int[], boolean[], etc).
Set filenames and debugContext via literals, to avoid class-name munging.
fix error messages
compile RE pattern just once