fix: don't stringify if not necessary

If browser does not support structured clones, also check that the object is not a string before calling JSON.stringify