Fix type for the overloaded 'for' loop.