Minor clean up of cray MPMD logic

Remove redundant non-zero checks on xfree (e.g. "if (x) xfree(x);")
Remove some duplicate code for switch unpack logic for different
  RPC versions.