Fix LeafRefContext for relative refs defined in external grouping
LeafRefPathParserListenerImpl builds LeafRefPath
using namespace of the module which contains leafref definition.
While it is valid approach for absolute paths with prefix (YANGTOOLS-749),
it cannot be used with groupings, because they are bound to namespace
when contents of the grouping is added to the schema tree.
This patch fixes the relative path case
by using the module which uses leafref.
JIRA: YANGTOOLS-891
Change-Id: Ia903138f80c437937374eb7d3460fdbe8b2a97c2
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
b1feee95519d1bed1387ba417d7ab06eee86e3f9)