Make pbc export use same options as import.
Merge pull request #933 from reciprocity/feature/pbc-task-queue2

Make pbc export use same options as import.