fix crash when instantiating unknown rdfs::Class
fix to make sure resources pointed by pseudo_ptr<cons T,...> gets indexed

it is a bad design and index will be moved to pool_allocator
fixed static map used for indexing through statisc function