more rigorous constness and avoid copying
Merge pull request #4 from ignatz/constness

more rigorous constness and avoid copying