fix(angularjs): make Function.$inject optional

The $inject member of the global Function interface should be optional, to be consistent with actual functions.
Merge pull request #2007 from Aidiakapi/patch-1

fix(angularjs): make Function.$inject optional