implement IndObj::XRef decode(), encode()