Fixed a bug causing terminal commas to break.  Add some regression tests.
Regression tests revealed [] broken.  I believe i fixed it but the mistake is rather weird.  Wonder why it ever worked.