Spellcheck, bugfixes

Making lints happy, fixing bugs.
Stuff fixed:
Missing semicolons
Spelling checked (except for names)
typeof 'array' -> typeof 'object' && Array.isArray() <- IE9+ support, earlier versions will need a polyfill.
defining / fixing undefined variables within:
Jmat.Real.eulerTotient: 'jmatresult' was not defined: Best guess was changing the variable to 'result'
Jmat.Complex.rootfind: 'z1' was not defined: Best guess was changing the variable to 'o.z1'
Jmat.Matrix.svd: 'i' was not defined: Best guess was a forgotten 'var' in for initializer.
Jmat.Matrix.solve: 'aag' was not defined: Best guess was a forgotten 'var' at assignment.
'Real, Complex, Matrix' were not defined: Best guess was a forgotten 'var' at assignment.

Jmat.Real.lambertw: 'return result' after for(;;) loop was unreachable because the only exit conditions from the loop were returns. Removed.
Jmat.Complex.polylog_integral_: argument 's' has no method 'divrdivr'. Renamed to divr.

Remaining issues:
Jmat.Complex.doSummation: i is not defined
Jmat.Complex.doProduct: i is not defined
Jmat.Complex.polylog: final return: 'return Jmat.Complex(NaN);' is unreachable due to an if else chain ending with an else containing a return. I am unsure how you wish to proceed there.
Jmat.Complex.gamma_inv: 'x' may not have been initialized before the first expression.
Missed one.
Merge pull request #2 from PlNG/master

Bugfixes and Spellchecking