reformat some code
add another turn restriction test
fixes #1041, some only_ turn restrictions are inverted under certain conditions
fixes #1041, some only_ turn restrictions are inverted under certain conditions