Further refined Numeric.AD.Internal.Classes