Return const ref to RouteDistinguisher and EthernetSegmentId

Change-Id: Ib42e1f16eca5b56df4d2e4dbb1a24dc3714fe09a