Improved FindFunction To Search Namespaces

Added an improvement similar to that of `FindEnum` and `FindClass` to the `FindFunction` helper method.

Sorry about the old merging junk in the history here.