add WIN_NULL checks throughout
add NULL check after win_alloc for size>0
remove redundant null check
catch bogus grp_proc in place
add warning for invalid rank translation request; add brackets