extending kstat.cc to support all kstat types

This should support all KSTAT_TYPE_*. Each new variation was tested on SmartOS. 

I tried to match the indentation and general style, but you might want to review.

Thanks