Do not try to get the layout of classes with dependent fields since upstream added an assert to check for dependent types in getTypeSize.
Fixed processing of type locations in the case of template specializations (the new behavior deals properly with elaborated and qualified types). Fixes some crashes in template-heavy code.