fixed bugs in MultiPDBWrite, these should be added to the hotfix branch. Also changed a bit the behavious of OptimizedGeometry in NWCHandle