Fixed type error in ProbDist.__setitem__ and factored out common logic.
Fixed type error in ProbDist.__setitem__ and factored out common logic.

ttalviste/aima,hobson/aima,hobson/aima,hobson/aima,ttalviste/aima