STANBOL-1237: some bug fixes in the Writer

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