updated injector so that it will find arrays of strings with a last argument function and invoke that item and return it.