fixed bug with non-contiguous form field grouping. closes #18