Merge branch 'spectrum_array_fix' into 'master'

Update array indices to prevent out of bounds.

See merge request !88
10 jobs for master in 21 minutes and 18 seconds (queued for 2 seconds)
Name Stage Failure
failed
linux_analysis Analysis
   Uploaded: /home/gitlab-runner/builds/3f7f1a15/1/jap/radix/build/Testing/20191226-1959/Build.xml
Uploaded: /home/gitlab-runner/builds/3f7f1a15/1/jap/radix/build/Testing/20191226-1959/Coverage.xml
Uploaded: /home/gitlab-runner/builds/3f7f1a15/1/jap/radix/build/Testing/20191226-1959/CoverageLog-0.xml
Uploaded: /home/gitlab-runner/builds/3f7f1a15/1/jap/radix/build/Testing/20191226-1959/CoverageLog-1.xml
Uploaded: /home/gitlab-runner/builds/3f7f1a15/1/jap/radix/build/Testing/20191226-1959/DynamicAnalysis.xml
Uploaded: /home/gitlab-runner/builds/3f7f1a15/1/jap/radix/build/Testing/20191226-1959/Test.xml
Submission successful
Errors while running CTest
ERROR: Job failed: exit status 1