Merge pull request #242 from rixner/master

Minor fixes to min()/max() and tuples