Add a mask to RelativePosision and RelativeTransformation constraints

  - mask is a vector of boolean values defining which  coordinate of the
    error vector needs to be regulated to 0.