BC: fix 5.14-5.17, wrong defined(CvGV_set) logic

plus some ident changes
C: more PADLIST changes backported from master