Some cleaning of uniform binding index, context, programrefs.