I'm not sure what the issue is here, but I have many diagrams that print out a footer verbatim as "This is %page% of %lastpage%" -- no substitution for the "magic numbers". I'm not sure why. A simpler example works, but I see no substantial differences text wise.
Thoughts?