added remap/2 to apply a function to proplists recursively