fix AstStreamR C generation code
reorder stream optimization

eliminate right stream operator on RHS of assignment first. Right stream
operator on RHS results in bits being read in the same order.