[BUG #7390] Add type information to constant nodes