When calling contactIdentifyPost without tags or with empty tags, the API response returns tags as null, which throws an error in the convertToType, because it tries to run map over the null value.
convertType/default/Array.isArray(type) receives data = null and type = ['String'] and tries to do return data.map(function ..., which leads to the problematic situation, as null has no function map.