Keep the locals for tracebacks (check they're pickable)