fix http query building for nested arrays