Collapse getType() match cases for Refs