Clean up some code analysis warnings (event handlers); extend physics debug visualisations