FANN dataset loader is now just a function.

In addition, we have a test case for it.