Scalar is now a Handle

it just stores a shared_ptr to data on the heap
Fix usage of Scalar
mark const refs as such
Test integration of Scalar, Linear1DFunction and EpsilonVector