Compute variance components and write to file.
Fixed #1 (zero-variance effects are not included in the model).