Scottish government plans to alter how a transgender person changes the gender on their birth certificate will reach their last legislative stage this week, with amendments to a bill being discussed on Tuesday and the final debate and vote on Wednesday.