Added some Array helper methods. Refactored IOCore.compileMemoryDispatch...

...es. Refactored checking kind of cartridge in CartridgeCore.

If you're open to some refactoring, I made some changes. They shouldn't change any of the implemented functionality. I also included some extensions to array object that will up support for IE and allow equality checking on 1D arrays.