Bug fixes and http type validation implemented for wsgi.input and QUERY_STRING