Fix loop shortcut state, move loop pos to score.cpp, add loop on selection and undo lower_bound causing crash