Implement jsonpatch.validate with tests. #29.

https://github.com/Starcounter-Jack/JSON-Patch/issues/29
```javascript
if (!_isArray(obj) && obj !== null && typeof obj === 'object')
```