Implement Jeffreys prior

This replaces #245.