citegen.php: Add metadata support in plain reference generator