add sanity check to size setter for fixed size arrays