Separate implementation of ScalarGaussianRandomField

Fixes an item in #47.