Expand `getJidType` and add tests. Fixes #61