Something very similar to this is in git now. Sadly its not the reason for colorpicking trouble. But I changed something in another branch where I am able to use depth buffer now for colorpicking too. By this the units are rendered in the right order and maybe it fixes more of our selection problems.