FLUID-5340: changed indexOf to $.inArray

IE8 doesn't support indexOf on arrays.

http://issues.fluidproject.org/browse/FLUID-5340