fixed #1558 min_gaps and atc calculated along with packedfactors
added regression to test 217

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3897 8b96e2b9-35c5-2c16-bc47-5122d61876d4