Redmine#3279: datatype(), a function which returns the top-level type of a data container