unfold percent repeats only

If you want to display the same music definition in some situation (e.g. part) with percent repeats, while in other situations (e.g. score) you want to show the percent repeats unfolded, here are some functions to handle this.