NXP-14676: fix marshalling types writer