sigopt: caller heuristics: check type of stack argument

we cannot pass the argcount around (e.g. send), so with optional args
check the stack type, and use a default or zero if not matching the sig.