Fixes several bugs in the lifecycle management of RosActivities and adds DiagnosticsArrayView.