Properly report self referenced classes error in ctypeswriter