Support `MATERIAL|data` format in treasures.yml

Allows users to use the same material type for multiple treasures in
treasures.yml

Fixes #1965