Fix serialisation of blank nodes and add Sesame Writer test