Secondary quantities support (but not for output yet); Fix in fraction cpp template.