Wire up Optional() for Gremlin API


It looks like much of the code already exists, and the iterator is used for the MQL API already. I started looking at what would be required, but my brain is melting a little trying to onboard all the logic.

From: https://github.com/cayleygraph/cayley/issues/311


Reopened, as it has a concrete implementation plan.