use existing _pathlist() function to convert key and an array of values ...

...into AWS query param format instead of doing this in every function