replaceUnique function, re-organize non-typeclass functions

replaceUnique needed functions (getJust) that were living in the base persistent
module. This caused circular imports.

version bump