libhandy now has HdyValueObject, this simply copies the class over as it will only become available in libhandy 0.8.