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.
Merge pull request #6 from wilkie/bugfix/static-runtime-array-issues

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