Remove the type-checks in `free(std::vector<Constraint*>& constrvec)` as well as checks for `nullptr` before deleting.