Added generic iteration methods to Array