specialized methods for fast reduction of tuples

This may help to reduce the overhead in some computational algorithms (e.g. those dealing with sizes).

This update is relatively isolated and should not cause issues to any other codes.