implement minimum integer digits

+ improved pattern parsing
+ skip/todo NYI tests
round half to even