added partitioned collection detection in shardCollection #870

fixes #870