Allow subclassing int and float (close #172)