Update option_type for has_many product through

Needed for search from option value.

Fixes #3910