More advanced custom typeSet detection in constructor + tests.