Fixes to dynamic type initialization specifically important for the set type