add freeze/unfreeze functions for converting objects to pyrsistent versions.