More robust lazycopy. Corrects unexpected behavior when writing nils to existing objects
Adds missing locals