Added dbRef resolution + tests for it.