Fixes #108 -- Improve detection of generator function for custom fields.

Use `isinstance()` to detect compatible field subclasses. Avoid circular
import when mapping built-in generators to custom fields in settings.