Fix nondeterministic failures in approx_distinct tests
Remove unused class
Remove uses of IterableTransformer
Add separate deterministic flag to SHOW FUNCTIONS