If you answered yes, you may be eating Castoreum - Beaver Anal Gland Juice.
Yes, you read that right. It's the last item on that link.
I'm having a hard time picturing a pioneer munching down on a beaver anal gland and declaring "tastes just like raspberry or vanilla".
I'd guess it would have been a member of the First Nation, who in turn showed a French trapper.
You know the French...they'll try anything once..especially the Canadian ones...;P
Well, it's being used an additive to the flavoring, not as a full 100% substitute. (When ambergris was still being put in perfume, women weren't walking around smelling like whale vomit.)
Supposedly, it's oily and bitter. I suspect it's used to counteract or supplement the flavor/texture of the artificial ingredients they are using trying to simulate natural vanilla/raspberry.
Ah, that's true. Musk is a glandular secretion that was used as a fixative in perfume making. I guess it really isn't a leap to use a glandular secretion as a fixative in flavoring either.