When serialising the following query, the surrounding ( ) are forgotten, causing a syntactically invalid query to be generated:
ASK WHERE { ?s ^(^<a:a>) ?o. }
becomes:
ASK WHERE { ?s ^^<a:a> ?o. }
which is syntactically invalid.
#165 contains a breaking test for this case.