support encoding FV directly with multiple dt types