GetSelectedRows and CountSelectedRows added

You shouldn't pass around pointers to interfaces, since the variable with the pointer to the interface value is not able to satisify the interface method set.

Removing this also means you won't need to dereference model below, when accessing the C TreeModule pointer.