Implement jsonpatch.validate with tests. #29.

https://github.com/Starcounter-Jack/JSON-Patch/issues/29
Array.isArray() isn't available on IE8, check json-patch.ts method _isArray()