remove obsolete Struct slot type

plus some minor cleanups
change OpSegmentation to return uint8