[BUGFIX] Inverse key and value for items coming from a UserFunc

Change-Id: I4beb1bfc9dedc053471a3d063b00ed78555af1f9
Releases: 0.4.0
Resolves: #59922