Separate implementation of ScalarCdf

Fixes an item in #47.