Implement s.sss and m.mmm formats
Ignore '-' when looking for duplicate characters in tick labels. Fixes #17.