Fix bug where DoubleRDDFunctions.sampleStdev() computed the non-sample stdev()

This fixes [SPARK-825](https://spark-project.atlassian.net/browse/SPARK-825), a bug where DoubleRDDFunctions.sampleStdev() computed the non-sample stdev() due to a typo.

I also added a commit to bring JavaDoubleRDD up-to-date with the current DoubleRDDFunctions.

After merging, please cherry-pick this into branch-0.7.