ref: store the target in the record

There's no need to create a new object every time the user asks for
the target, so store it the same way we do for the type.