Added automatic wrapping of attribute functions to the Collection and Cursor classes.