Fix wrong typing for xsd:integer(count(xsd:string(...))). AggregatesTestWP5 improved.