Add Generator class and support code

Generator is intended to be the preferred way to encapsulate Func building in user pipelines. This pull request probably could use more documentation, but the overall design and set of tests is solid enough to begin serious discussion.
For float and double, numeric_limits::min() return the smallest normalized number, which is >0. Maybe use numeric_limits::lowest() instead?