Implement option.type filtering in #hitTest() functions.