Use if instead of list-comprehension.
Correct type of second argument of spawn/2.

{Mod, Fun, Args} is not of function() type. I can't tell if this even
allows a function() type at all.
pos_integer() does not include 0, changed to non_neg_integer().
Add warn_untyped_records flag.
Merge pull request #9 from basho/bugfix/sdc/dialyzer

Fix dialyzer warnings.