8044638: Tidy up Nashorn codebase for code standardsReviewed-by: lagergren, sundar
8019821: allInteger switches were confused by boolean cases, as they are a narrower type than intReviewed-by: sundar, hannesw