Fix failures by using subtype's subtype if subtype already a Type
Fix failures by using subtype's subtype if subtype already a Type

Co-authored-by: Étienne Barrié <6dc335678d67ce71f38e027c7d6ca3e84f384c85@shopify.com>

byroot/activerecord-typedstore