Applications can use this to ensure they've grabbed the whole XSTATE correctly. UML uses it to determine if the FPState was correctly saved. Also adds a unittest to ensure the same correct behaviour. For #5206