Convert instances of Object.getOwnPropertyNames() to Object.keys()