cpp: test: Constrain long values to 32-bits

The L numeric literal suffix may be constrained to 32-bit values on
some platforms.  Test cases use values in this range only.  The actual
PositiveLong and NonNegativeLong types are 64-bit quantities on all
platforms; this contraint is for initialising with literal values only.