Fixed some warnings. Added method for wrapping arbitrary enumeration code in NSEnumerator.