checkTypes: add capitalizedNativeCase mode

- fixed null case checking

Fixes #51