Fix segmentation fault when SVM is trained in sequenece. Fixes issue #9
This one is tricky. Although the tests are passing now (most of it), the solution is not appropriate.
I guess there is some reference counter that is decremented by mistake, but I was not able to find it. @andre.anjos look at the diff, I just created a fake iterator in the end of the training.