Replaced dangerous uses of sizeof()

This patch replaces several uses of sizeof with calls to std::array's
size method.

Bug: 153655228
Test: Compiled with changed static asserts
Test: Treehugger
Change-Id: I4cf87f2d7fffe0d7c81e0652688bedd4d5c9c5c2
2 files changed