Fix #515: Implement isInfinite for java.lang.Float and Double