allow RTS tracing with a command line option
fix pap arity calculation in generic apply