Fix a dialyzer warning and enable warn_untyped_record

Also, fixes a probable typo.

I didn't understand the purpose behind the maybe_drop, so I ifdefed it out in non-TEST mode.

I'm also not entirely sure that the {} instead of [] was a typo, but it sure looks like one.

cc @jtuple @andrewjstone