Implement java.util.Arrays.hashCode
Centralize JavaScript-side ad-hoc test detection

Note: `detectTestNames` will be used in a later commit.
Fix #1288: Make stage a setting in sbt plugin