clean up vkxml.py
I am about to give the codegen some changes. To refresh my memory, I went through vkxml.py
and made assorted cleanups. No change to the generated code.
My goal is to make the decoder do a bit of validations. E.g., when a pointer is not marked optional="true"
, check that it is non-NULL.
/cc @zzyiwei