Fixed issues with passing pointers as constant arguments.