5.3.3 compatibility for metadata, updated test from php arrayobject getiterator example