Handled the case where an empty slice might be given
Fixed recursion problem for lists
Default return value for non-accessable db references are now the same DBRef object