[JSC] Implement isFinite / isNaN in JS and make DFG ToNumber accept non number values