Fixes some legacy issues in the runtime dealing with array compares.

The old code existed due to the lack of proper typeinfo infrastructure.
Now we can just piggyback that for the legacy runtime interface.