Make mutable objects still act mutable when JSON-encoded