fix problem with optional<T&> const