Issue #843: Fixed bug when single inheritance keys contain special chars

Fixed bug and contributed test