Added missing include for <array>
Replaced boost::array by std::array
Wrote unit tests for the emission tracker, refactored code
Fixed invalid memory accesses in unit tests