change replacer function signatures to match that of stringify, detect circular refer...