Ensure that sum_by_entity doesn't generate an array of booleans and that any_by_roles generates an array of booleans.
Move statshelpers to openfisca-(country)-data projects.