Fix rndtable formatting
Rewrite r_span to use templates instead of macros

Only need two distinct function definitions per blend mode now.
Collapsed the 6 slope span drawers into two functions as well using the
same approach.