Made weightedSd(), weightedVar() and weightedMad() plain functions.