[todo] Allow references for class types