Add comments and an assertion to catch a bug!

I've noticed that asyncify fails if you call alloca during an async callback, we should at least catch this and abort before corrupting the stack. Also added support for a third argument to realloc_ctx to refresh the invoke flag.