Fixed as_dict commands for records.