Correction to getNodeType()

Fix bug where the getNodeType() function would not identify all
possible literals and mistake some for entities.