Autocorrelation and masked heterogeneity in panel data models estimated by maximum likelihood