Avoid getting checksum if not needed

deserializeRange calls getElementChecksum(rootNode) even when there is no checksum in 'serialized', and calls getElementChecksum(rootNode) once more if it is actually needed.