Add Duple equality testing and other formatting

- Minor formatting fixes in Duple.cs