[idl] add length query to idl::WireReader