Preserve null objectness when copying test doubles.

Fixes #732.