common/utils: Ensure str type for query parameters in reverse function
It prevents possible issues in URL generation when providing a query parameter
that is not of string type.
See for instance bug fixed in rDWAPPS1c512a8365afb9485e9ac202046fd1ca4223a3c4
that could have been spotted by mypy if such rule was in place.