alternative fix for issue #17.
redefines getOwnPropertyNames.