bug fix: also check field assignments when resolving numerical types