Duplicated environment variables
It's possible to have duplicate environment variables. (How about having execve remove those?). Ensure that unsetenv/setenv/getenv handles this. Problem: unsetenv might just swap with the last element to shrink, but that might reorder duplicates environment variables and change which of the multiple identically named variables takes precedence.