Fix for issue #125, where nested query params were not correctly formatted