Move the base_string type's init/cleanup into functions called by libdynd_init