Const fixes

This branch removes bmap template, which sole purpose was implementing const operator[].
This functionality is available via C++11's std::map::at(), see http://en.cppreference.com/w/cpp/container/map/at.
While working on that, I also made use of that function in few places where suitable improving constness, possibly providing hints to the compiler.