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

Note: `detectTestNames` will be used in a later commit.