Fix , Revert generic Vector/Sample/Histogram (always use double which
are generic enough).
Fixes.