Make the preferred collection methods configurable

This fixes #328.