Fix #1766 "Can't set maxlength on fr:number"