Don't strip units from 0 length durations when compressing

This fixes #1445 by not stripping the 's' or 'ms' unit from 0 duration values.