Use map instead of comprehensions to concatenate lists

When creating a concatenated string from a list, using `map` instead of
a list comprehension is 40% faster. While most concatenations are
marginal to performance, for large ID set query parameter generation for
wide-area node tuple queries this can save up to 5ms.