s/wether/whether
Merge pull request #1867 from christhekeele/fix-macro-env-doc-typo

s/wether/whether
Add is_var/1 for use in typespec guards

Allows you to specify a variable without any type contraints.
Move typespec guards to end of spec

Moves precedence of `when` to be lower than `::`.