Cleanup of server side for IMap.values() and IMap.values(predicate)

Improved readability of code for IMap.values() and IMap.values(predicate), e.g. variable names, newlines, moved declarations closer to usage, same order of parameters for similar methods, new sub-method.

This PR is a preparation for the "unbound return values"-PRD for HZ 3.5.