Make Qt metatypes for optional<NodeRef<T>> so they can be cross-thread in signals/slots