Update Appender.d

turn static this into shared static this, and I got carried away and turned max() into a template.