Splitted writer-related APIs to gauche/writer.h