Is this another case where it only happens when the map key is an entity? Because the same test I wrote for HHH-10125 also has a test for VALUE() that works fine given that original model.