fixed tuples and arithmetic in featextract.