made entity::mem_t inherit qlog::reference. fixed a bug with the destructor declaration of template_argument.