Improved input checking: raise TypeError if unsupported branch is specifically selected, raise RuntimeError if no branches can be converted.
Merge pull request #153 from ndawe/master

[MRG] Improved input checking