Sorting out typicality with the inverse moment matrix SOS polynomial