Added PMF.copy() and tests.