Work around r bug in make_expectation.
Fixes #52