added serialization tests, uncovered a bug in feature serialize
fixed serialize instances for perceptrons