Trivial: Use calloc instead of malloc in rec reader.
rec: properly parse and write advanced options