Allow pointer type-painting for pointers to global variables