Support $descriptor() macro in fragments

Per our earlier discussion, adds $descriptor() macro expansion inside fragments, and also added a python test case for it. The test successfully passes.

Cheers,