Fix iter in builtins stubs
Fix Python gen of refs to builtin interfaces

Examples: Iterable, Sequence, Mapping.
Fix runtime references to re.Pattern
Minor refactoring
Fix runtime references to re.Match