Improvements in the ArrayWrapper and arrayutils.
* Bug fixes.
* Converted ArrayWrapper to work in its new environment.