Suppot arrays in params

Prior to this commit we failed to support arrays in params
This commit fixes that