[core] re-enable -t flags

Useful to trace opcodes, method resolution or type of function calls (sub/coro).
And fix one instance of wrong argtype in src/packfile/api.c
ChangeLog: merged rurban/traceflags