Test for cyclic type declaration handling in TypeDescriptor

Issue: SPR-9735
Polishing