fixed formatting of to_fvar
added test for matrix addition in fvar for vals

need to test derivs still
added typename T template for fvars in dot_product