Fix an issue where functions that take a user context get incorrect
argument casting due to a mismatch in indexing the llvm argument type
list.