Update Collection.class.php

Added implementation of php native iterator interface. 
Changed return type of next function to return current element before incrementing collection position
Also added alias functions hasNext, valid, and key.