Fix use of diff.createPatch with non string

Fix use of diff.createPatch with non string parameter caussing bad xml result file
expect({a : 'b'}).to.be.eql({a : 'a'});