AM: FIX GGA calculations with legacy inputs

This should fix the regression introduced in 224dd9a for the case when
an old input which does not make use of XC= keyword and instead
specifies VWNC=, XALPHA=, BECKE99=, and PERDEW= flags.
AM: rm debug prints, format comments