Cannot mix packed and unpacked types in this operation

In reply to sunils:

Having sig_i as a wire does not solve the issue unfortunately.

Thanks.