Added a native array map implementation.
Some minor performance improvements.