Use an implicit parameter for maxRepeat

This gives the user more flexibility, by exporting genexWith from the
library. (The default is still 3 and is captured in the variable
maxRepeatDefault.)