Update ContextIO.js

check if prop is own property to avoid errors when objects/functions are extended.