741 typehint paramfetcher

Proposed fix for issue 741:

https://github.com/FriendsOfSymfony/FOSRestBundle/issues/741