Faster array equality

This isn't ideal, but it's good for a 500ms faster typecheck in ps-in-ps on my machine. The main problem is the PS implementation results in two `array.slice(1)` calls per each index being checked.