spec and fixes for arrays in query params