Always use 0-indexed pids; refs #74

For consistency, this applies to older patches as well.