Fix for broken sparse_dot in SGSparseVector - issue #2133

Work-in-progress on #2133 (abusing Travis as test system to quickly check what breaks).