sparse vector enhancements
SingleElementVector optimisation
misc fixes