Homology for zero-dimensional nonwandering sets