Prepend restrict when using `restrict`.

This updates the template to preappend restrict so users don't have to
repeat it constantly and ensures this param cannot be used to sneak in
other non-restriction lines.

This PR dedicated to Zach.