Fixing problems with `_indicies_of_periods` and `usage_per_period`.
No known issues in any of these functions, now.  Will continue porting
the rest of the stats functions from PDA tomorrow. #31