[MAT-387] Correct type of logical matrix by using correct constructor