Add value and type check for mib get/set function

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>
Because it will occupy spaces. Moreover, The error function needs to print both tag name and value type name in string, they both occupy spaces stored in a table.