Add support for ghost atoms with PIMD
Avoid type mismatch
Merge pull request #21 from OndrejMarsalek/ghosts

Add support for ghost atoms with PIMD