Fixed a bug where term lists would print with a trailing comma.