Fix offset calculations for effect row.
Fix offset calculations for effect row.

Also fix handling single-variable encoders.

dandaka/afterglow,brunchboy/afterglow,brunchboy/afterglow,brunchboy/afterglow,ryfow/afterglow,ryfow/afterglow,dandaka/afterglow