Subpulse and PD list bug fixes

these were breaking under certain circumstances.