8044638: Tidy up Nashorn codebase for code standardsReviewed-by: lagergren, sundar
8024693: Various minor issues with JSONWriter used by script parser APIReviewed-by: jlaskey, hannesw