Reading correct typename of certain collections