Simplified Datastream class API.
Added tests for limiting downsampled values.
Support various combinations of limited returned downsampled values.