Copy of solution Function

See: Copying a function in dolfinx - #2 by dokken