queryToObject(): if no string is passed use URL instead

fixes https://bugs.dojotoolkit.org/ticket/18368: if no string is passed use URL instead
also fixes https://bugs.dojotoolkit.org/ticket/16190: Style Guidelines in io-query.js