fix managertype.userId() to return the actual userId
fixes to aggregateCursor() - it now works completely