replaced Theory.self_ref by Theory.check_thy, which now produces a checked ref;
thread-safeness: when creating certified items, perform Theory.check_thy *last*;
use_thy "FP0";
use_thy "FP1";
use_thy "RECDEF";
use_thy "Rules";
use_thy "Sets";
use_thy "Ind";