Add value and type check for mib get/set function

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>
You're right, I'll fix it right now.