Add pre_offset and post_offset params to histogram agg

Closes #1106