Update hasPath

Make sure obj is Object
Add test for updated hasPath
Merge pull request #183 from zimme/patch-1

Update _.hasPath