Attorney-General welcomes extended detention for child rapist