Don't delete query values after formatting

They may be useful to other users of the query object
Merge pull request #509 from grncdr/dont-delete-query-values

Don't delete query values after formatting
Fix : field.length undefined
Merge pull request #520 from ifsnow/fix-field-length

Fix : field.length undefined