Add tests for functions and user types.
Merge branch 'master' of http://github.com/grandseiken/yang
More tests; in particular, for errors.