Review/const standard integer by ref fix

This fixes issue #57