Added handling of array-type parameters