Make inline rbtree APIs more uniform