Add utility method to generate an `Oguid` for an object.

*I did not add an additional changelog entry since the `Oguid` class is new in release `4.x`*