Templates always get name set correctly
Implement Tools.getType in client
Various bugfixes to new search library