Improvements to Yale refactoring. each_stored_with_indices now uses
STL-like iterators.