Adapter for using primitive lists as collections.