fixes STANBOL-1198; also adds an unit test for BNode support incl. loop detection.

git-svn-id: https://svn.apache.org/repos/asf/stanbol/trunk@1538520 13f79535-47bb-0310-9956-ffa450edef68