[iter] Implement range-based for loops

Part of https://github.com/harfbuzz/harfbuzz/issues/1648
5 files changed