fix generic reader with functor
add importWithValueFunctor in test
Merge pull request #920 from kerautret/fixReaderWithFunctor

fix generic reader with functor