Fix numberBetween max default value handling

Closes #305