typetools: getClass method improvement

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>
typetools: code style

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>
global: JSON utility moved to typetools-json module, tests

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>