Fixed a tagged type comparison to use Ada 2005 functionality instead of 2012.