Fix bug in Space
Add tests to make sure to detect bug
Fix bug in IndexSpace rather than patch Space to compensate
Fix typo
Remove unnecessary code
Fix typo
Merge pull request #650 from vdumoulin/fix_space_bug

Fix space bug