Set the newly created Struct object to self in its initialization block.

fix #1858.