apichange: provide iter function on objects and array, as well as accessors
to get the number of elements for these types.