Add a __repr__ method to DihedralType to improve a potential warning message.