added iterator an enumerator over arrays

Added an iterator and enumerator implementation that functions over constant
arrays.