Updated visit_UnaryOp to use the new bean format for internal types