Fixed a bug with saving boolean and string values to HDF5, and added some memory-cleanup code to avoid keeping copies of per-thread VSMs after TF-IDF is computed.