[Refactoring] for getFunctionAttributes
Fix warning in mtype.c
Replace 'unsigned' to 'unsighed char'
Merge pull request #3534 from 9rnsr/refactor_traits

Fix warning and small refactoring for __traits(getFunctionAttributes)