Fix ArrayIterator interface implementation; remove usage of arraysize(), structsize...