make <hasOwnProperty/> transform correctly