- replace some usages of `==` with `is` - use available constants instead of magic strings for type names Co-authored-by: nat <nat.noordanus@gmail.com>