Made subschema errors use the attribute type in their key

Feels more general, and easier to understand