Schema and metadata attribute handling fixes for langAware decoding