Matches lengths with just 0 or 0-with-unit as duplicates

Most of this work was by @mduvall

Some stackoverflow discussion: http://stackoverflow.com/a/935113/410759

refs: #42, #32