Fix null being treated as an object

Fix recursive objects filling up the stack