8044638: Tidy up Nashorn codebase for code standardsReviewed-by: lagergren, sundar
8025589: Array.prototype.shift should only copy defined elements in generic modeReviewed-by: sundar, attila