Moved to explicit struct defines for pcell.

A style type refactoring. Also, there's already a function called copyMap. So
I've renamed copyPmap to copyMapWithLayers.