Zero filled ts

This closes #422, making sure that the times are unique and sorted as they go through their various transformations. It also resolves a few edge-case bugs.