Fixed flop-accounting for periodic improper dihedrals

Flops were incorrectly assigned as proper dihedrals.
Fixes #632.

Change-Id: Ifda09b9a0e6575c5f6f19f3c55979804fe1dc2eb