Use builder in d1lang translation
Add unittest and fix naming in dlang conversion