Made the REFLECTION_DECLARE_DERIVED macro match registration on class ordering.