Refactore fann_type array processing
Test fann_test and fann_train