Fix argument order in scale/2 and floating point precision issues with variance/1