Added a helper function to create simple arrays filled with a value