Like JSON.stringify, but doens't throw on circular references