[java8] don't crash on intersection types
[java8] Added tests for using java language features in transformations.
Added test for issue 361. It is currently ignored.