Fix case where runtime translation of a message would result in leaking of compile-time only information on referenced objects and messages