Removing keyof function from object prototype

The function was causing problem on several tests (object comparison, etc), and there was no reason it had to be on the prototype, as it was not called as an instance function.
BTW, thanks for the work, saved me quite some time.
Cheers.