rostruct.rb: should also handle array values