Use hasOwnProperty for data

Otherwise prototype methods of some data-classes fall into query string
Merge pull request #114 from anru/master

Use hasOwnProperty for data