Return const ref to RouteDistinguisher and EthernetSegmentId

Change-Id: I8b4b4eaade0438ae0ad2c947e45113ae0b1ab18d