MYFACES-2645 The view state is saved before encodeAll() is called on every UIViewParameter in an AJAX request (including some code cleanup)