The elaborate funeral for the late supreme leader is becoming more than a farewell; it serves as a carefully staged test of regime continuity after his decades-long rule.