Abstraction for native arrays and objects implementing ArrayAccess/Iterator/Countable interfaces