ENH make caching constraints work in one-slack svm, add test.