add peer type resolution for mixed-const []T and *[N]T
closes #4766
This commit also fixes the implementation of some utility functions for
adjusting properties of pointer types. Previously these functions would
incorrectly drop vector, sentinel, and inference metadata.
b980568c81Andrew Kelley committed on 3/30/2020, 5:02:50 PMparentef419dd