Training and Inference on Any-Order Autoregressive Models the Right Way