Fix foldsExprs function for lists