Reset fields, and set unset object fields to nil

Signed-off-by: Stefan Marr <git@stefan-marr.de>