[xbuild]: Allow expressions inside a dynamic <ItemGroup>'s metadata.

Fixes #14661.