hy_goal_write_debugdata()

Finally start using testcase_write().

Plus the bindings.