generate missing to_string functions in vhdl testbench
generate function declarations and bodies in types.vhdl

previously we only generated the bodies, which was wrong.