Added options.replacer for custom object serialization