Improve formatting in pidl code, make sure OBJREF member gets created.