Don't collect objects with id 0.

Fixes #71.