Corrected broken guards in sim_core.h.

Sorry... apparently I can not spell "sim_core_header" consistently.
Corrected and unit tested.