Added more strict checks for empty inputs to compare, meanStdDev and RNG::fill