Fixed #6278: Remove casts to references to pointers in Tokenizer::simplifyCasts()