Allow access to idx and dir fields of reg/net operands.

Signed-off-by: Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>