Fix min for custom classes

Sk.misceval.richCompareBool was sometimes incorrectly returning a python bool instead of a javascript bool. This messed up builtin functions such as min and sort.