gnmi: split out logic for keys to strings
gnmi: split out logic for keys to strings

This will be used in a later commit in airstream logic

Change-Id: Ic72c28920d59f30979f6c1ea770c1447ee3504c2

aristanetworks/goarista,aristanetworks/goarista