Remarkable life of Dr James Barry – who was born a woman in 18th-century Cork – continues to spark debate