Nonergodicity and central-limit behavior for long-range Hamiltonians