modifications to make rest-client format array params correctly