Adding tests for linear algebra functions

Additionally, fixed a small bug that prevented .dot() and .angle() from
being called on a jStat object, as opposed to as a static function.

There are still untested functions in the linear algebra library,
and it does not make sense that all of the linear algebra functions
can be called on a jStat() object but only accept plain matricies
as arguments. This future change will be made easier with fuller test
coverage.

Fixed tabs to spaces, including on the template.js test template file. 
Fix style for spaces on `if ( ) {` and removing curly braces for one-line
options, fix style for spaces before colons when defining properties,
also on the template file.

(Tests pass on my machine 205/205).