Generator functions now always return generator type properly.