generator: make ref count type configurable
generator: make ref count type configurable

This allows a caller to specify atomic<int> if they want to copy their generator around between threads.

toby-allsopp/ranges-coroutines