if the value reference is a ELEMENT reference, do report that instead so that LocalTypes with prototypes that can have record types inside them are reported really as a good function