added @ngInject support for inline functions

This PR attempts to solve #481 by enabling @ngInject for anonymous functions