enhancing the emulated sample to allow IsRoot is a subclass of another
IsPersistent and also IsRoot can itself be subclassed. not adapted to
compiler and real sample yet.