Implement injection of strings provided by `val`s and `def`s inside a rule

Provide corresponding tests