We weren't calling Init on some functions which should have had this done. I'm not sure whether this is the right place, or if it should be elsewhere as part of the scope building process. Good enough for now.