fix compound period granularity for exact periods
fix duration granularity with non-zero origin
Merge pull request #703 from metamx/fix-period-granularity

fix granularity for precise periods with non-zero origin