Wacky unknown pointer issues.

I thought when you passed an array you also passed it's size.

CubeControl::CubeControl(... byte layerPinNumbers[4] ...)

just my guess.