Add overload for const member functions

This is a solution for issue #31.

Thanks to [constructor](http://stackoverflow.com/users/3043539/constructor) for coming up with the idea.