The Scottish government unveils plans to scrap the "double jeopardy" rule under its new programme for government.