Deepcopy fix

This is a small fix to deepcopy functionality.
Now ``deepcopy`` copies the number of ghost cells in both serial and parallel.