Fixed linker errors. Fixed data corruption in *Array. Added testbed.