Instance $replace vars start at 1, not 0
Add compiler hook to place instances for signs

Mainly for P1 style, allows you to have frames around the signs. It adds
the $mat instance var, which can be used to switch out the instances via
a condition.