Berried treasure

Could someone please settle a lively, and as yet fruitless debate as to the origin of this english phrase. which sort of nut is it a reference to, how is it sweet, and where was it first used and why.....

Many thanks, in advance....

Your debate wasn't fruitless - it has revealed a a kernel of truth as berried treasure!