added def to function defintions

In the last commit i added the def keyword to the language to make
syntax highlighting and tooling easer. This commit pays the debt
for the standard library on that change by making all traits to
conform to this new standard.