model: Replace attrs-strict with stricter validation
This reimplements attrs_strict.type_validator(), using type equality
instead of isinstance.
This makes my checksum validation script (that mostly just instantiates
model objects, computes a checksum, then discard) run twice as fast.