Added support for array types.

https://issues.jboss.org/browse/JBTM-2089