to_json does different things with Set on different versions of ruby