Check for generator type explicitly.

This should also bring back 3.2 support, hopefully.  I just really,
really want the build to pass...