Replaced all use of custom check_type_exists module with builtin check_type_size

Fixes issue #10.