Add value and type check for mib get/set function

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>
Typo, **neither**.