Fix sparsearray operator[] const

Was copied from nonconst version which changed the sparsearray
Deleted lines of code which changed sparsearray
Also added const to methods for dynamic_bitset::size,
dynamic_bitset::count,and dynamic_bitset::count_before methods