Add support for frozen atoms with PIMD

This allows the use of frozen atoms with PIMD.