[DDMD] [refactor] Move Expression::toCBuffer and helpers into hdrgen.c

An easy but big one.