Extensions to Foundation collection classes