Added support for array types and array refs
commit