Patch 1

Added missing hasOwnProperty checks to for .. in loops. The adapter breaks without it when Object.prototype has been extended.