Revert "test referenced type for an untyped collection"

This commit was accidentally pushed to the master branch.

This reverts commit 57b955fce79e8a0f726adcae070a0c12b1bd3a0b.