Fix R unions seg fault

Started seg faulting since nested branch merge