In all cases where the owner whose material has been used, without his knowledge, to form a thing of another kind may claim ownership of that thing, he has the option of claiming the return of his material in the same kind, quantity, weight, measure and goodness, or its estimated value at the date of the return.