Hash::Fold - flatten and unflatten nested hashrefs