ref: simplify blob ref for this use-case.

We need a unique ID per object, not a hash of the object.
Add ext optional to refs.