[12419] Fix No-PCH compile. Also make some InstanceData Getter const

(based on commit [12309] - f3a24b5)