Fix some token checking methods.
Fix some token checking methods.

I forgot to ensure that we only processed tokens matching the predicate
and only then check the type of the one that matched.

alangpierce/decaffeinate,decaffeinate/decaffeinate,eventualbuddha/decaffeinate,eventualbuddha/decaffeinate,alangpierce/decaffeinate,decaffeinate/decaffeinate,alangpierce/decaffeinate