Implement `==` comparisons

Fixes #194. Still not sure about ordering of multipart types; I would appreciate some review and feedback.