Wrote a function analyzing period-finding fidelity. Tested, good.
oncvar_period's generation is now abstracted into a function.