data resolving BUGFIX correct handling of shorthand cases in shema paths
data resolving BUGFIX correct handling of shorthand cases in shema paths

Even if the schema defines shorthand case, the full path including the
shorthand `case` name must be used.

The change also deduplicates code.

lukasmacko/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,lukasmacko/libyang