[java] Typed exceptions support. Closes #1782
[java/cs] TArrayDecl + Vector optimization. Closes #1801