Fixes to ext_globalMethodSignatureForSelector()

* Fixed problem with cache (#43)
* Now also searches through optional protocol methods, if needed (#42)

Added tests for both.