binding: use memset() to set the writeObject() persistent reference

Fixes the segfaulting :)