Fixed IHC just half wave rectify bug in C++

Swapped ordering of arguments to ArrayX::Constant and moved
initialization of ac_coupler variable outside conditional statement to
get just half wave rectify option to work in C++.