Add constructors and destructors in hashtbl.