Compiler: Fixed a few bugs in reference_inherited_identifier().