Revert "Use the native Object.keys if it's available."

This reverts commit 60689993d75db32701e99f7eb9110ce8eff54610.