Number Format: Properly format Infinity and NaN.

Change numberSymbol()'s API to receive the symbol name instead of looking it up
itself. Therefore, numberFormat() properly formats infinite and nan.