Allow converting any histogram (e.g. a Map) to a Pmf