Use type tuple() instead of record()

Dialyzer doesn't recognize the type record(), so let's use tuple()
instead.
Merge pull request #149 from legoscia/record-type-specs

Use type tuple() instead of record()