Support new object sampling

Adds support for interval when using :object sampling mode.

/cc: @jasonhl, @camilo