RECORD and ARRAY objects have datatype 0. This should be fixed to the correct values from the specification