make generated classes' __repr__ overrideable