Export array of types correctly in toJSONLD