SpatialPoolerTest fixes, VLA elimination

SpatialPoolerTest fixes, variable-length arrays elimination