Various fixes to LTI XML grade processing.