Why is Scotland's gender recognition reform bill controversial?

Scotland's gender recognition bill has caused constitutional friction with Westminster - but the content of the bill is also causing consternation.