Use type tuple() instead of record()

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

Use type tuple() instead of record()