SharedField: add operator== and operator!=

fixes #186