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