Return reference id in identifiers block (fixes #4)