Fixed bug retrieving an entity relationship property from an entity. Closes #21.