Fix casting on arc* functions found by Dunbaratu.

Should fix #81, #83, #76