Overhaul error type library to be aligned with STPA.
Handles the modeling half of santoslab/aadl-translator#22