feat(util.to_query_str): Smart handling of lists

This patch improves to_query_str so it can recognize instances of
list and convert it to a comma-delimited string value.

Closes #152