Fixed bug in ExtractFunction:
 - Pointers are counted correctly all the time
 - Parameter order has been fixed when some parameters are also part of the parent function