slightly different API for IgnoreType.

works better for state machine based usage.