Warning message if array empty

Following fophillips comment on pull request #37, I've added warning
messages in the case that the array given to mean() or stddev() is
empty or contains only values that are NaN/infinite