Ya, this code is awesome!  I even tried rezzing a player while they were zoning and they got the rez box after they zoned.  As soon as they clicked accept, they corpse was no longer rezzable.  I also tried not accepting the rez and it kept the corpse rezzable as it should.  I don't think it gets any better than that 
