Bug 920463 - Use correct index when iterating over type objects r=jandem