Pass a reference to ValueEnumerator.

NFC. This will just make it easier to use std::unique_ptr in a caller.