[mycpp] Support iteration over List/Dict subtypes