setcoltype function

Sets column type for a matrix or a list of matrices