Partial fix for Issue 10666 - Appender does not work with a RefCounted type

http://d.puremagic.com/issues/show_bug.cgi?id=10666

Essentially this is neigher dmd nor phobos regression, but recent `Appender` change in 2.064a should not raise "cannot build closure" error.