Allow overloading to/from_json for vectors.