Fix catalogtree example

See #866 
In addition, if fixes some fishy dependencies.