Implement collection size limit for ido completion

Fixes #31.