Added support for generic methods when generating script helpers from extension methods.