Add case insensitivity for document attributes. fixes #106