array: adding a values() function

This is useful in a "for i in $(values)" context