References now loaded in file order. Fixes #56

Fixes a bug where references would be loaded in incorrect order if two
reference syntaxes were interleaved in a single file.