[runtime] Add image_is_dynamic ()/assembly_is_dynamic () inline functions to allow code to be optimized away when DISABLE_REFLECTION_EMIT is defined.