Don't generate duplicate max function for the Index type
And Bundle primitives
Update reducer example to new prelude