Fix Array#keys and Array#entries in Safari 7.1