Fixed crashes in kstat related plugins.
Merge branch 'test' into dev