Added DefQuantity mixin template (and updated documentation).