fix issue with Time/Duration message fields when used as array (ros/ros_comm#252)

I can confirm that this patch solves ros/ros_comm#252. But I am not confident if that is the right way to address the issue.

@tfoote @wjwwood Can you please take a closer look?