Use is-generator-function instead of is-generator to detect generator functions

This switches from "is-generator", which uses easily fakeable constructor properties to test for generator functions, with "is-generator-function", which uses unfakeable Function#toString to test for generator functions.