added types to SX{2,3} and unit tests for adjoint