Added support to serialize record fields