Bug/matt/product attributes pickling infinite loop

Better testing pickling, unpickling and pickling again