Currently resolving references happens at runtime, which means sketches like this only fail 50% of the time:
root:
- This line is fine
- This line contains an invalid {{ reference }}
To avoid these errors happening at runtime I suggest creating a validation step in parsePhraseBook
that checks if all references in the script are valid.