(PUP-1799) Rename to InternalFunction

The InjectedFunction name wasn't very descriptive and also didn't
provide a good indication to external users that it shouldn't be
touched. This changes the name to InternalFunction.