Implemented Prelude.Num and OccasionallyScalar in preparation for hmatrix support