ArrayELResolver.setValue should take autoboxing into account

`ArrayELResolver.setValue` takes an object as input value, yet the target may be a primitive array. Autoboxing possibilities should be considered before throwing a `ClassCastException`.

The available method in the `Util` class is is used to resolve this.

See also [the corresponding report in the ASF Bugzilla](https://issues.apache.org/bugzilla/show_bug.cgi?id=55691).