nine/shader: BYTE == UBYTE
nine/shader: add sanity checks to ctor/dtors