[ADD] Added create-cas-index-from-doc-function.
[MOD] create-cas-index-function returns document node.
[FIX] Fixed retrieval of non-existing node keys.