Fix #215: Helper for int and double now work as expected.

SGTM