Like in the PMDG, I used to save a panel state with doors open, but that causes that problem with gsx asking to open an already opened door. You have to press close then open again and then it sees it open correctly.
GSX simply ask for a variable value to FSX, because even a custom XML variable is still an FSX variable, it doesn't have any interaction with the airplane directly.
If it's not updating correctly when saving or loading a state, it means those animation variables are not kept in sync with internal doors status when the state loads and they go back in sync only when you operate the door again.