[from_wkt] Move the appending logic outside container_appender and dispatch by closure.