Use the `callGetIterator` helper from ast-util.

I realized that this functionality would be needed in both for-of and spread, so I pulled it into ast-util.