Fix errors in declarations
Update tree to use yaz types

TODO: Fix that dumb print statement. It will need to use a method in
yazbuiltins  which does type based dispatch.