Started implement references to dictionary entries. Most work done but test suite craches and lots of test cases is still to be written.