check_arm_ref_comp function

Check if the Treatment variable is reference or compare