8060204: Fix warnings in Joni and testsReviewed-by: hannesw, sundar, attila
8032681: Issues with NashornReviewed-by: ahgross, jlaskey, sundar