test: make test/cli/check.js work with native generators

Apparently checking for `'Generator' == g.constructor.name` doesn't work
in native V8. We should probably change that check in `co`...