create_collection: allow to pass options
selector.keys.length -> selector.size