Fix issue with processing options with grouped values
It was assumed that $options is always an array of strings, but it can be an array of arrays in certain scenarios like a taxonomy term reference field that allows multiple vocabularies.
Closes #3489289