Added helper function 'CallFunction' that handles the calling of a function with conversion of LPXLOPERs into either an integer or a void value