Miscellaneous fixes and improvements in sesh::common