Change type spec from node() to pid() everywhere it occurs.

Solves #43.