(Core) Remove deprecated methods.
(Core) Add validation method that inspect a given object and display
diagnostic on the logger.
(Backends) Check the validity of the IR between each transformation pass using the validation method instead of the dirty serialization :)