WW-4387 - using original key type for contains method.
WW-4387 solves problem with preselcting multiple options in <s:optgroup> when key is not a string