Fixed choosing which Treema class to use in the cases where the data type doesn't match the schema type.
Fixed copy/paste.