Users shouldn't be implementing this anyway, and we'll document the available types, so I'm fine just reporting the invalid type here. Generally, such exceptions should report the invalid value to help with debugging.