Add foreach fann_type input callback
Remove compile test function