fix #12 for D and Volt as well
generator: fix c++ / don't write functions twice fixes #9