Refactor external type encoder/decoder to byte payloads, add generic

Added External Type Record with both domain, type and byte payload, deprecate
UnsupportedExternalTypeRecord.