(yoyo): Improved resolved generators lookup

Using an object (which should eventually be a Set) instead of an array reduces
the lookup cost from O(N) to O(1). Micro optimization as this would only matter
with *a lot* of resolved generators.