Sadly, dead folk are transported just like any other piece of freight; it quite saddened me the first time I saw a (full) coffin, wrapped in hessian on the ramp and then forklifted onto the aircraft. I suspect the only concession would be if the family was there for some reason. At the other end, the coffin was (carefully) forklifted into the hearse for onward transport.
The only difference form a box of spanners is that the captain is given a Notice to Aircraft Commander (NOTAC) informing him that he is carrying 'human remains'.