Fixed some parts of the sparql cache. Need yet to make it a generic binding cache though...