Move Statement::toCBuffer into a visitor
Merge pull request #3237 from yebblies/statementtocbuffer

[DDMD] [refactor] Move Statement::toCBuffer into a visitor