make TVal more similar to generated messages for introspection

Addressing ros/std_msgs#6 generically instead of in rostopic (ros/ros_comm#414).