Equality and type comparison updates.
- Now using === operators for number and character comparisons (faster or as fast as == on everything except IE)
- Made local functions for checking 'string' and 'undefined' types since they are used often enough that this will reduce the code when minified