Update arithmethic standard library and add unit testing
Created by: tnguyen-ornl
Related to https://github.com/ORNL-QCI/qcor/issues/132
Also, update the control modifier to handle control bits from different registers (XACC has supported this feature).
Fixed a bug in adjoint: CPhase, Tdg, Sdg were not handled appropriately.