pushed all hasOwnProperty checks into _.keys, speeding _.keys up by about 25%, and using it to simplify other functions: _.each, _.isEmpty, _.functions
(cherry picked from commit 689cd97e03a21b87567f9c615c8aa08890d19e6c)