Remove some unneeded calls to `check_type`.

Other functions cause the type to be checked. So it was unneeded.
Style changes.
Fix a typo in docs.