Fixed double inner product of tensors. Densification seems functional, plastic strain seems broken.

Added the check for enforcing densification inequalities.