Swapped the order of the values in the LrTableGenState type to make it easier whenever we want to convert functions to use the ReaderState workflow.
Simplified the main pre-compilation/validation function to use the State workflow instead of "manually" passing around the state values.