avoid hasOwnProperty so plain objects work

closes #102