file: when writing, try to convert plain Java objects to VTypes