Unfortunately, it does not seem like you can use dynamic variables to populate a hierarchy variable.
For instance, if you want to do this:
s.hier1 = "D=gn" to automatically assign the pagename to a hierarchy variable (a common use-case), it cannot be done.
Can we get this enabled so we can populate hierarchy variables like we would with eVars and props?