Interval value extraction fixes and optimizations.

This PR contains multiple commits:

- fix for appending all data extracted for a chunk/op to the view
- fix for extracting all available interval op chunk data in one pass
- append samples to view in bulk (array instead of single sample)
- minor code cleanups