Fixed support for hook generation when types are double and/or __int64