get_type function

Get type of a vector or matrix of observed values or predictions