Use pubtype and citekey instead of _type and _key in reference.toJSON