8044638: Tidy up Nashorn codebase for code standardsReviewed-by: lagergren, sundar
8012291: NativeArray is inconsistent in using long for length and index in some places and int for the same in other placesReviewed-by: lagergren, jlaskey