I did not use free spices for up to 15 years. I think Xpice have some AHDL extension. You have to search for the capability of a dot expression. The current of a cap is expressed then as function of a voltage derivative.
The reason today not have the general controlled cap in spice point back to the early 70s. The transient simulation in spice is not more than the time point specific solution to a nonlinear DC system. So every capacitor and inductor is substituted by a DC equivalent circuit. The construction of the equivalent circuits and there parameters are depending on the integration algorithm. Then this circuit is loaded into the matrix before solving them. The matrix loading is much more difficult with general controlled components (eg consider multivoltage depend parameters). So the number of types stops in the mid 70s. Today AHDL spice implementation are in principle 2-kernel solutions. The first is the spice kernel, the second implement general integro/differential equations. The interconnection is general via sources. Time step organisation have to look at both domains. A mixed (A/D) kernel is similar organisized.