refactored some code for minor and major locators
added _locate_values to scalarformatterlocator as well