Adding ToString and IsNumber functions; fixing If-else evaluation bug

Added ToString and IsNumber functions. Also added try/catch to
expression evaluation to allow exceptions to occur in if/else logic. If
the exception occurs in the 'false' branch of logic, the expression can
still evaluate.