Added iterator support to all of the memory elements.