Arrays: Fixed some bugs array capacity and bound arrays. Added unit tests.

Depending on how arrays were resized, requests to size bounded arrays to amounts larger than
their limit were either clipped at the limi, or ignored. Now requests are all clipped.

Reserve elements (those that exist when capacity exceeds length) are now consistently in the cleared state.
This cleaned up initialization of bounded arrays in general.