fixed includes in fvar
added to_fvar with tests
added typedefs with tests for fvar matrix