Resolve annotation id's after everything else has been processed.