Use Object.prototype.hasOwnProperty instead of using hasOwnProperty directly

Node's QueryString lib can and will give us objects that do not have or override `hasOwnProperty`.  [See here](https://github.com/joyent/node/issues/1707) When  that happens waterline will crash. This PR fixes that.