Support for 0-len traj; new minus def works.

Tests pass. I think this is ready for check-in.