updated ScalarFormatterLocator so it takes quantities