build_nested_query includes integer values

Patch from @spastorino
Closes #557
Merge branch 'spastorino'

* spastorino:
  build_nested_query includes integer values

Conflicts:
	lib/rack/utils.rb