Do not use singleton ImmutableMap for datatree/schematree
As it turns out singleton ImmutableMap has a few kinks, one of which
is allocating its inverse when asked for values. This is consting us
48 bytes more than with Collections.singletonMap(), hence let's
special case to bring our footprint down.
JIRA: YANGTOOLS-652
Change-Id: I7ac170c02609a15b3ec77a91e5075ec62f814232
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
e61246c419cd0655ca9dccdcd9e497440324d7b7)
(cherry picked from commit
bd432e731100aa299d5564f930efcb91e0ee57e9)