Fix generics issues
Add tree handles – lightweight tree cursors

Some changes in method names.