Fixed some minors issues where the const qualifier was being discarded.
Merge pull request #219 from fintler/const-qualifier

Fixed some minors issues where the const qualifier was being discarded.