More robust check for validate_probablities().
Merge branch 'master' of github.com:dit/dit